/*
 * Copyright (c) 2018-2999 九五云信息科技有限公司 All rights reserved.
 *
 * https://www.gz-yami.com/
 *
 */

package com.yami.shop.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yami.shop.bean.model.FlowPageAnalyseUser;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * 流量分析—页面数据统计表
 *
 * @author YXF
 * @date 2020-07-16 16:23:53
 */
public interface FlowPageAnalyseUserMapper extends BaseMapper<FlowPageAnalyseUser> {

    Integer countAllVisitor(@Param("date") Date date, @Param("startTime") Date startTime, @Param("endTime") Date endTime);

    Integer countVisitorNumByDate(@Param("beforeYear") Date beforeYear, @Param("endTime") Date endTime);

    Integer countPaidVisitorNumByDate(@Param("beforeYear") Date beforeYear, @Param("startTime") Date startTime);

    List<String> countVisitors(@Param("startTime") Date startTime, @Param("endTime") Date endTime);

    List<String> countVisitorRetained(@Param("type") Integer type, @Param("startTime") Date startTime, @Param("endTime") Date endTime, @Param("uuids") List<String> uuids);

}
